import properties from "@/properties";

const open = (url, name="_self", specs, replace) => {
  if(url.startsWith('http')) {
    window.open(url, name, specs, replace);
  }
  else {
    window.open(properties.$routeBaseURL + url, name, specs, replace);
  }
}

export default open;